<?php
	include("smarty/Smarty.class.php");//包含smarty类文件

	$smarty = new Smarty();//实例化一个对象

	define("DIR", str_replace("\\", "/", dirname(dirname(__FILE__))));

	$smarty->setTemplateDir(DIR.'/templates/');//设置模板目录

	$smarty->setCompileDir(DIR.'/templates_c/');//设置编译目录

	$smarty->setCacheDir(DIR.'/cache/');//设置缓存路径

	$smarty->setConfigDir(DIR."/configs/");//设置配置文件路径

	$smarty->caching = false;//是否使用缓存,开发期间建议不开启

	$smarty->cache_lifetime=60*60*24;//缓存时间

	$smarty->left_delimiter = "{"; //设置定界符
	$smarty->right_delimiter = "}";




?>